﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TomNet.IMSC.Model.Infrastructure;

namespace TomNet.IMSC.Model.DbModels.NewHouse
{
    /// <summary>
    /// 楼盘置顶
    /// </summary>
    public class BuildingTop : GeneralBase<int>
    {
        /// <summary>
        /// 经纪人ID
        /// </summary>
        public int UserID { get; set; }
        /// <summary>
        /// 关联楼盘ID，低价房ID，装修ID
        /// </summary>
        public int UnionID { get; set; }
        /// <summary>
        /// 关联模块 -> UnionModuleEnum
        /// </summary>
        public int UnionModule { get; set; }
        /// <summary>
        /// 开始时间
        /// </summary>
        public DateTime BeginTime { get; set; }
        /// <summary>
        /// 结束时间
        /// </summary>
        public DateTime EndTime { get; set; }

        /// <summary>
        /// 置顶类型 -> BuildTopTypeEnum
        /// </summary>
        public int TopType { get; set; }

        /// <summary>
        /// 排序
        /// </summary>
        public int ShowIndex { get; set; }

        //        isTop 是否置顶
        //isTopStartTime 置顶开始时间
        //isTopEndTime 置顶结束时间
        //isBestSellers 是否热卖
        //BestStartTime 热卖开始时间
        //BestEndTime 热卖置顶时间


    }

    public enum BuildTopTypeEnum
    {
        每天置顶 = 0,
        单次置顶 = 1,
        永久置顶 = 2,
    }
    public enum UnionModuleEnum
    {
        新房 = 1,
        低价房 = 2,
        共享房 = 3,
        装修 = 4,
    }
}
